import 'package:safetymonitor/generated/json/base/json_field.dart';
import 'package:safetymonitor/generated/json/plotting_base_entity.g.dart';
import 'dart:convert';
export 'package:safetymonitor/generated/json/plotting_base_entity.g.dart';

@JsonSerializable()
class PlottingBaseEntity {
  PlottingBaseEntity();

  factory PlottingBaseEntity.fromJson(Map<String, dynamic> json) => $PlottingBaseEntityFromJson(json);
  late int id = 0;
  late int companyId = 0;
  late String dataId = '';
  @JSONField(name: 'json')
  late String jsonDate;
  late int createTime = 0;

  Map<String, dynamic> toJson() => $PlottingBaseEntityToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}
